module BroadcastsHelper

  def associate_broadcast_to_program(program)
    (image_tag 'add.png') + "&nbsp;" + (link_to 'Broadcast<br />', :controller => 'broadcasts', 
		  :action => 'new', :program_id => program) if Broadcast.is_creatable_by(current_user, program)
  end
  
  def show_broadcast_parent(broadcast)
    show_associated_program(broadcast.program)
  end
  
  def view_broadcasts
    link_to 'Broadcasts<br />', :controller => 'broadcasts', :action => 'index'
  end
end
